package com.example.springbootth.datasource;

import com.example.springbootth.entity.Book;

import java.util.ArrayList;
import java.util.List;

public class MyData {
    public static ArrayList<Book> getData(){
        ArrayList<Book> books = new ArrayList<>();
        books.add(new Book(1,"三国演义","罗贯中","中国人民出版社","0"));
        books.add(new Book(2,"西游记","吴承恩","中国人民出版社","1"));
        books.add(new Book(3,"水浒传","施耐庵","中国人民出版社","2"));
        return books;
    }
}
